package com.crm.model.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the moves database table.
 * 
 */
@Entity
@Table(name="moves")
@NamedQuery(name="Move.findAll", query="SELECT m FROM Move m")
public class Move implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String mid;

	@Temporal(TemporalType.DATE)
	private Date mdate;

	private String mname;

	private String mntname;

	private String motname;

	//bi-directional many-to-one association to Customer
	@ManyToOne
	@JoinColumn(name="cid")
	private Customer customer;

	public Move() {
	}

	public String getMid() {
		return this.mid;
	}

	public void setMid(String mid) {
		this.mid = mid;
	}

	public Date getMdate() {
		return this.mdate;
	}

	public void setMdate(Date mdate) {
		this.mdate = mdate;
	}

	public String getMname() {
		return this.mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

	public String getMntname() {
		return this.mntname;
	}

	public void setMntname(String mntname) {
		this.mntname = mntname;
	}

	public String getMotname() {
		return this.motname;
	}

	public void setMotname(String motname) {
		this.motname = motname;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

}